<script lang="ts" setup>
import {onMounted, ref} from 'vue';

const count = ref(0);
onMounted(() => {
  setInterval(async () => {
    count.value = await storage.getItem<number>('local:count') || 0;
  }, 1000);
});
</script>

<template>
  我爱掘金{{ count }}次
  <iframe src="https://baidu.com" width="100%" height="100%"  frameborder="0" data-id="client-account"  allowfullscreen="true"></iframe>
</template>

<style scoped>
.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}

.logo:hover {
  filter: drop-shadow(0 0 2em #54bc4ae0);
}

.logo.vue:hover {
  filter: drop-shadow(0 0 2em #42b883aa);
}
</style>
